xen passthrough: fix recent regressions
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Nov 2009 12:41:54 +0000 (12:41 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Nov 2009 12:41:54 +0000 (12:41 +0000)
commitcecb47b78549a0e9aa240fc02a20bc1474d6cc5c
treee4ca0773fac886d49425763e96821cca3780e0e3
parentb8a456caedf2424255b585032fc9eac51d2a895d
xen passthrough: fix recent regressions

This patch fixes the recent regressions pointed out by Dexuan, keeping
pci passthrough working with stubdom too.  In particular calling
device_create when pci_state == 'Initialising' is a mistake because
the state is always Initialising when attaching a device while
device_create has too be called only when the pci backend is missing.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/python/xen/xend/XendDomainInfo.py